<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>

    <form id="news">
        <!-- 加载编辑器的容器 -->
        <script id="container" name="content" type="text/plain">
            这里写你的初始化内容
        </script>

        <input type="button" value="提交" id="btn">
    </form>


   
    <script type="text/javascript" src="js/jquery-1.12.3.min.js"></script>

    <!-- 配置文件 -->
    <script type="text/javascript" src="ueditor/ueditor.config.js"></script>
    <!-- 编辑器源码文件 -->
    <script type="text/javascript" src="ueditor/ueditor.all.js"></script>
    <!-- 实例化编辑器 -->
    <script type="text/javascript">
        var ue = UE.getEditor('container',{
            initialFrameHeight:400
        });

        $(function(){
            $("#btn").click(function(){
                $.ajax({
                    url:'news/add.do' ,
                    method:'post' ,
                    data:$("#news").serialize() ,
                    success:function ( data ) {
                        console.log(data)
                    }
                });
            }) ;
        }) ;
    </script>
</body>
</html>